FROM openjdk:8-jdk-alpine
MAINTAINER didi
EXPOSE 7000
VOLUME ["/gulimall-auth"]
COPY ./target/gulimall_cart.jar gulimall_cart.jar
ENV TZ=Asia/Shanghai
RUN sh -c 'touch /gulimall_cart.jar' && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-jar","/gulimall_cart.jar", "&"]